package com.gzbugu.bugusys.vo.abs;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * AbstractTrafficContract entity provides the base persistence definition of
 * the TrafficContract entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractTrafficContract implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String customer;
	private Date date;
	private String summarize;
	private Integer amount;
	private Date start;
	private Date end;
	private String url;

	// Constructors

	/** default constructor */
	public AbstractTrafficContract() {
	}

	/** full constructor */
	public AbstractTrafficContract(String name, String customer, Date date,
			String summarize, Integer amount, Date start, Date end, String url) {
		this.name = name;
		this.customer = customer;
		this.date = date;
		this.summarize = summarize;
		this.amount = amount;
		this.start = start;
		this.end = end;
		this.url = url;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "customer")
	public String getCustomer() {
		return this.customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "date", length = 10)
	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column(name = "summarize", length = 65535)
	public String getSummarize() {
		return this.summarize;
	}

	public void setSummarize(String summarize) {
		this.summarize = summarize;
	}

	@Column(name = "amount")
	public Integer getAmount() {
		return this.amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "start", length = 10)
	public Date getStart() {
		return this.start;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "end", length = 10)
	public Date getEnd() {
		return this.end;
	}

	public void setEnd(Date end) {
		this.end = end;
	}

	@Column(name = "url")
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}